package com.intellagric.agriecom.module.agriecom_news_type;

import com.intellagric.pojo.AgriecomNewsType;

import java.io.Serializable;

public class NewsTypeResult extends AgriecomNewsType implements Serializable {
    private String parentName;
    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    public NewsTypeResult(AgriecomNewsType type){
        this.setId(type.getId());
        this.setName(type.getName());
        this.setParentId(type.getParentId());
        this.setParentIds(type.getParentIds());
        this.setLevel(type.getLevel());
        this.setSort(type.getSort());
        this.setRemarks(type.getRemarks());
        this.setCreateBy(type.getCreateBy());
        this.setCreateDate(type.getCreateDate());
        this.setUpdateDate(type.getUpdateDate());
        this.setUpdateBy(type.getUpdateBy());
        this.setDelFlag(type.getDelFlag());
    }
    public NewsTypeResult(){}


}
